import request from '@/utils/request'

// 查询赣政通部门列表
export function listDepartment(query) {
  return request({
    url: '/gzt/department/list',
    method: 'get',
    params: query
  })
}
// 查询赣政通部门列表
export function listDepartmentUser(query) {
  return request({
    url: '/gzt/department/userList',
    method: 'get',
    params: query
  })
}
// 查询赣政通部门详细
export function getDepartment(id) {
  return request({
    url: '/gzt/department/' + id,
    method: 'get'
  })
}
// 修改赣政通部门
export function updateDepartment(data) {
  return request({
    url: '/gzt/department',
    method: 'put',
    data: data
  })
}
